Skip to content

fix: add -XstartOnFirstThread to UI launch configs for macOS#1283

Draft
joaodinissf wants to merge 5 commits intodsldevkit:masterfrom
joaodinissf:fix/start-on-first-thread
Draft

fix: add -XstartOnFirstThread to UI launch configs for macOS#1283
joaodinissf wants to merge 5 commits intodsldevkit:masterfrom
joaodinissf:fix/start-on-first-thread

Conversation

@joaodinissf
Copy link
Copy Markdown
Collaborator

@joaodinissf joaodinissf commented Mar 7, 2026

Summary

  • Add -XstartOnFirstThread to all UI launch configs for macOS (required for SWT Cocoa)
  • Remove obsolete Solaris build profile
  • Add macOS build profile with -XstartOnFirstThread for Tycho Surefire tests
  • Preserve .gitignore in xtend-gen/ during maven clean
  • Gitignore .tycho-consumer-pom.xml generated files

Test plan

  • Verified devkit-run launches successfully on macOS
  • CI is unaffected (runs on Ubuntu with xvfb-run)

🤖 Generated with Claude Code

@joaodinissf joaodinissf marked this pull request as draft March 7, 2026 12:10
@joaodinissf joaodinissf force-pushed the fix/start-on-first-thread branch from faa451c to 7bce3ca Compare March 7, 2026 12:51
@joaodinissf joaodinissf force-pushed the fix/start-on-first-thread branch from 7bce3ca to 9973822 Compare April 4, 2026 11:39
@joaodinissf
Copy link
Copy Markdown
Collaborator Author

Note to self: Test the launch configs on Windows before merging — -XstartOnFirstThread is macOS-specific and the JVM may reject it on other platforms. The POM profile handles this correctly for CI, but the .launch files hardcode the flag unconditionally.

joaodinissf and others added 5 commits April 7, 2026 00:12
On macOS (Cocoa), SWT requires the Display to be created on the main
thread. Without -XstartOnFirstThread, all RuntimeWorkbench and SWTBot
launch configs fail with "Invalid thread access".

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
SunOS/Solaris is no longer a relevant target platform.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add a macosx profile activated on family=mac that sets OSGI properties
(macosx/cocoa/aarch64) and appends -XstartOnFirstThread to test JVM
options, fixing SWTException: Invalid thread access on macOS.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The maven-clean-plugin deletes everything under xtend-gen/ including
the .gitignore placeholder files that keep these directories tracked
by git. Exclude .gitignore from the clean fileset so that running
mvn clean no longer causes dirty working tree status.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
These .tycho-consumer-pom.xml files are generated during mvn builds
and should not be tracked.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@joaodinissf joaodinissf force-pushed the fix/start-on-first-thread branch from 9973822 to d305681 Compare April 6, 2026 22:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant